package com.zbaohuang.activity;

import android.os.Bundle;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.TextView;

import com.zbaohuang.xyh.R;

import butterknife.Bind;
import butterknife.ButterKnife;

public class VideoDetailActivity extends BaseActivity {

    @Bind(R.id.alertTextView)
    TextView alertTextView;
    @Bind(R.id.nameTextView)
    TextView nameTextView;
    @Bind(R.id.alertTextView1)
    TextView alertTextView1;
    @Bind(R.id.deviceNameTextView)
    TextView deviceNameTextView;
    @Bind(R.id.deleteButton)
    Button deleteButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_detail);
        ButterKnife.bind(this);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        alertTextView.setText("场景:");
        nameTextView.setText("客厅");

        alertTextView1.setText("设备IMEL号:");
        deviceNameTextView.setText("3425563469812849");

        deleteButton.setText("删除设备");
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {

        if (item.getItemId() == android.R.id.home) {
            onBackPressed();
            return true;
        }

        return super.onOptionsItemSelected(item);
    }

}
